import Cookies from 'js-cookie'
const ExpirationTime = 'expiration_time'
const TokenKey = 'token'
// 获取时间
export function getTimeToken() {
  return Cookies.get(ExpirationTime)
}
// 存储时间 到cookies
export function setTimeToken(expiration_time) {
  return Cookies.set(ExpirationTime, expiration_time)
}

// 获取token
export function getToken() {
  return Cookies.get(TokenKey)
}
// 存储token 到cookies
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 移除token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
